package com.ygf.listener;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * <p>
 * description:
 * </p>
 *
 * @author yangguanfeng
 * @since 2021/4/27 11:20
 */
@Component
public class TestListener3 {


	@EventListener
	public void onApplicationEvent(TestEvent2 event) {

		final String eventName = event.getEventName();
		System.out.println("=======anno shixian de =======" + eventName);

	}
}


